package com.yanqu.road.entity.enums;

import java.util.HashSet;
import java.util.Set;

public class ActivityTypeCheck {
    public static Set<Integer> onlyOneServerType = new HashSet<>();
    static {
        onlyOneServerType.add(eActivityType.RechargeActivity.getValue());
        onlyOneServerType.add(eActivityType.TaskActivity.getValue());
        onlyOneServerType.add(eActivityType.MallActivity.getValue());
        onlyOneServerType.add(eActivityType.PlatformActivity.getValue());
        onlyOneServerType.add(eActivityType.MysteriousMerchantActivity.getValue());
        onlyOneServerType.add(eActivityType.FestivalGift.getValue());
        onlyOneServerType.add(eActivityType.StarLight.getValue());
        onlyOneServerType.add(eActivityType.GoldIngotFund.getValue());
    }

    /**
     * 不需要其他区服id的活动
     * @param activityType
     * @return
     */
    public static boolean isOnlyNeedOneServerActivity(int activityType) {
        return onlyOneServerType.contains(activityType);
    }
}
